#!/bin/bash

mkdir -p /etc/nginx/conf.d/http
mkdir -p /etc/nginx/conf.d/stream
rm -rf /etc/nginx/conf.d/default.conf
/bin/cp -raf ${APP_VERSION_DIR}/template/nginx.conf.template /etc/nginx/nginx.conf
/bin/cp -raf ${APP_VERSION_DIR}/template/http.conf.template /etc/nginx/conf.d/http.conf.template
/bin/cp -raf ${APP_VERSION_DIR}/template/stream.conf.template /etc/nginx/conf.d/stream.conf.template